﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="SenderMoney_charge.aspx.cs"
    Inherits="SenderMoney_charge" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title> 平 台 账 户 充 值</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="/images/style.css" rel="Stylesheet" />
    <script language="javascript" type="text/javascript" src="/js/jiazai.js"></script>
    <script src="/js/introbox.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="/js/jquery-1.3.2.min.js"></script>
    <script language="javascript" type="text/javascript" src="/js/jquery-easyui/jquery.easyui.min.js"></script>
    <script language="javascript" type="text/javascript" src="/js/pagefunction.js"></script>
</head>
<body style="overflow-x: hidden">
    <form id="form1" runat="server">
    <div>
        <table width="100%" class="tableBorder" border='1' cellspacing="0" style="border-collapse: collapse;"
            bgcolor="#ffffff" bordercolor="#cccccc">
            <tr align="center" valign="middle">
                <th height="22" colspan="88">
                    平 台 账 户 充 值
                </th>
            </tr>
            <tr>
                <td>
                    操作
                </td>
                <td>
                    <input type="button" class="btn" value="刷新" onclick="Refresh()" />
                    <asp:Button runat="server" ID="btnexcel" Text="导出Excel" OnClick="btnexcel_Click"
                        CssClass="btn" />
                    <%-- <input type="button" class="btn" value="添加" onclick="Go('?act=add')" />--%>
                </td>
            </tr>
            <asp:Panel runat="server" ID="plop">
                <tr style='display: none'>
                    <td>
                        id
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txbid"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        用户名称
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlsenderid">
                        </asp:DropDownList>
                        <asp:Button runat="server" ID="btnSearch" Text="查询账户情况" OnClick="btnSearch_Click"
                            CssClass="btn" />
                    </td>
                </tr>
                <tr>
                    <td>
                        金额（元）
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txbmoney" class="easyui-numberbox" data-options="precision:2,groupSeparator:','"></asp:TextBox>
                        只能输入数字
                    </td>
                </tr>
                <tr>
                    <td>
                        备注
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txbmemo"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        来源
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddldirection">
                            <asp:ListItem Value="Cash" Text="现金"></asp:ListItem>
                            <asp:ListItem Value="UninPay" Text="银行卡"></asp:ListItem>
                            <asp:ListItem Value="Alipay" Text="支付宝"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button runat="server" CssClass="btn" ID="btnSenderMoney_LogOk" Text="确定充值" OnClick="btnSenderMoney_LogOk_Click" />
                    </td>
                </tr>
            </asp:Panel>
        </table>
        <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <asp:GridView ID="gvList" runat="server" AllowPaging="false" CellPadding="2" AutoGenerateColumns="False"
                        GridLines="Both" EmptyDataText="当前页无数据" CssClass="tableBorder" Width="100%" ViewStateMode="Disabled">
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="id" />
                            <asp:BoundField DataField="senderID" HeaderText="用户编码" />
                            <asp:TemplateField HeaderText="用户名">
                                <ItemTemplate>
                                    <%# FTchina.SMSServer.SMSServer.GetSenderNameByID(Eval("senderID").ToString()) %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="money" HeaderText="金额" />
                            <asp:BoundField DataField="date" HeaderText="日期" />
                            <asp:BoundField DataField="memo" HeaderText="说明" />
                            <asp:TemplateField HeaderText="操作说明">
                                <ItemTemplate>
                                    <%# FTchina.SMSServer.SMSServer.GetDirectionNameByCode(Eval("direction").ToString())%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="smsguid" HeaderText="短信批处编码" />
                            <asp:BoundField DataField="oper" HeaderText="操作人" />
                        </Columns>
                        <PagerSettings Visible="False" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <asp:Literal runat="server" ID="litpager"></asp:Literal>
    </div>
    </form>
    <script language='javascript' type='text/javascript' src='/JS/tablecolor.js'></script>
    <script type='text/javascript' language='javascript'><!--
        TableColor('gvList', '#F1F8FE', '#FFFFFF', '#F8DC87', '#BCE774');
    --></script>
</body>
</html>
